<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="toApprove">

<xsl:comment>
0 - have just been created
1 - is public
2 - have been denyed authorization
3 - is waiting for authorization
</xsl:comment>

<table bgcolor="#EEEEEE" class="body_10px" border="0" cellspacing="0" cellpadding="3" width="100%">
<tr height="25px">
<td class="dotlin" colspan="8"><b>Utenti in attesa di essere cancellati</b></td></tr>
<tr class="body">
<td><b>Nickname</b></td>
<td><b>email</b></td>
<td><b>Iscritto da</b></td>
<td><b>Citta'</b></td>
<td><b>Ultimo login</b></td>
<td style="color:blue;"><b>Why</b></td>
<td align="center"><b>Ripristina</b></td>
<td align="center"><b>Cancella</b></td>
</tr>
<xsl:for-each select="row">
<tr>
<td><nobr>
<xsl:call-template name="user">
	<xsl:with-param name="status" select="@status"/>
	<xsl:with-param name="sexid" select="@sexid"/>
	<xsl:with-param name="certified" select="@certified"/>
	<xsl:with-param name="userid" select="@userid"/>
	<xsl:with-param name="nick" select="@nick"/>
	<xsl:with-param name="bold" select="0"/>
</xsl:call-template>
</nobr>
</td><td><nobr>
<a class="body_10px_red" href="/mailbox/mailboxWrite.aspx?receiverGuid={@userid}"><img src="/imgs/mail_icon.jpg" border="0" heigth="15" width="15"/></a>
	&#160;
<a href="mailto:{@email}"><xsl:value-of select="@email"/></a></nobr></td>

<td>
	<xsl:value-of select="substring(@datetime,9,2)"/>-<xsl:value-of select="substring(@datetime,6,2)"/>-<xsl:value-of select="substring(@datetime,3,2)"/>&#160;						<xsl:value-of select="substring(@datetime,12,5)"/>
</td>
<td><xsl:value-of select="@city"/></td>

<td>
	<xsl:value-of select="substring(@lastlogin,9,2)"/>-<xsl:value-of select="substring(@lastlogin,6,2)"/>-<xsl:value-of select="substring(@lastlogin,3,2)"/>&#160;						<xsl:value-of select="substring(@lastlogin,12,5)"/>
</td>

<td><xsl:value-of select="@why"/></td>
<td align="center">
<a href="?userid={@userid}&amp;dontNuke=2"><img border="0" src="/imgs/warning.gif"/></a>
</td>
<td align="center">
<xsl:choose>
<xsl:when test='floor( @status div 2 ) mod 2'>
will be deleted *
</xsl:when>
<xsl:otherwise>
<a href="?userid={@userid}&amp;dontNuke=1"><img border="0" src="/imgs/delete.gif"/></a>
&#160;&#160;
<a href="?userId={@userid}&amp;dontNuke=0"><img border="0" src="/imgs/markedyes.gif"/></a>
</xsl:otherwise>
</xsl:choose>
</td>

</tr>
</xsl:for-each>
<tr>
<td colspan="6" align="center"><b>* next delete scheduled on <xsl:value-of select="/toApprove/@next_run_date"/> at <xsl:value-of select="/toApprove/@next_run_time"/></b></td>
</tr>
</table>
</xsl:template>

</xsl:stylesheet>